package com.tanhua.manager.jop;

import org.joda.time.DateTime;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
public class AnalysisJob {
    @Scheduled(cron = "0/5 * * * * ?")
    public void analysis(){
        System.out.println("当前时间是："+new DateTime().toString("yyyy-MM-dd HH:mm:ss.SSS"));
    }
}
